package com.example.module_mine.ui.fg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import com.example.lib_common.base.BaseFragment
import com.example.module_mine.R
import com.example.module_mine.databinding.FragmentAccountLoginBinding
import com.example.module_mine.viewmodel.LoginViewModel

class AccountLoginFragment: BaseFragment<LoginViewModel, FragmentAccountLoginBinding>() {
    private val mViewModel:LoginViewModel by activityViewModels() //注意：这里的activityViewModels()是activity的viewModel
    override val mLayoutResId: Int
        get() = R.layout.fragment_account_login

    override fun initView() {
        //设置当前正在显示的fragment
        mViewModel.setShowingFragmentTag(AccountLoginFragment::class.simpleName.toString())
    }
}